package com.titar.robot.ui.register;

import com.titar.robot.base.BasePresenter;
import com.titar.robot.base.BaseView;
import com.titar.robot.entity.LoginResponse;
import com.titar.robot.entity.MemberInfo;
import com.titar.robot.entity.RegistResponse;
import com.titar.robot.entity.VerifyCodeResponse;

public interface RegisterContact {
    interface View extends BaseView {
        void onGetVerifyCodeSuccess(VerifyCodeResponse response);

        void onGetVerifyCodeFailed();

        void onRegistSucess(RegistResponse response);

        void onLoginSuccess(LoginResponse bean);

        void onGetMemberInfoSuccess(MemberInfo memberInfo);
    }

    interface Presenter extends BasePresenter<RegisterContact.Presenter, RegisterContact.View> {
        void getVerifyCode(String phone);

        void regist(String mPhone, String mPsw, String cardCode);

        void login(String phone,String password);

        void getMemberInfo(String token);
    }
}
